package com.mf.all.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * 权限表
 *
 * @date 2025-04-02 22:36:49
 */
@Data
@TableName("t_permission")
public class DtoPermission implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId

    private Integer id;
    /**
     * 权限名称
     */

    private String permName;
    /**
     * 权限码
     */

    private String code;


    /**
     * 备注
     */

    private String remark;
    /**
     * 父级id
     */

    private Integer pid;
    /**
     * 排序
     */

    private Integer showOrder;

    @TableField(exist = false)
    private List<DtoPermission> children;

}
